Application exitCode Attributeapp.exitCode Description The exitCode attribute is used only when executing a script from outside After Effects (i.e. from a command line or AppleScript). On Mac & Windows, the exitCode is set to 0 (EXIT_SUCCESS) at the beginning of each script evaluation. In the event of an error while the script is running, it will be set to a positive integer. Type Integer; read/write. Example app.exitCode = 2; //on quit, if value is 2, no error has occurred |